<?php

class Framework_Form_AddFramework extends Zend_Form
{

    public function init()
    {
        $name = new Zend_Form_Element_Text("name");
        $name->addFilter('StripTags');
        $name->addFilter('StringTrim')
             ->addValidator('NotEmpty');
        $name->setLabel("Nom");
        $url = new Zend_Form_Element_Text("url");
        $url->setLabel("Url");
        $price = new Zend_Form_Element_Text("price");
        $price->setLabel("price");
        $description = new Zend_Form_Element_Textarea("description");
        $description->setLabel("Description");
        
        $submit = new Zend_Form_Element_Submit('submit');
        $this->addElements(array($name, $url, $price,$description,$submit));
    }
}

